const port = process.env.port || process.env.npm_config_port || 9527 // dev port
module.exports = {
  publicPath: './',
  productionSourceMap: false,
  devServer: {
    port: port,
    open: true,
    overlay: {
      warnings: false,
      errors: true
    },
    proxy: {
      '/': {
        target: 'http://127.0.0.1:8088',
        changeOrigin: true,
        ws: false,
        pathRewrite: {
          '^/': ''
        }
      }
    }
  }
}
